package com.apes.enquiry.supplier.jingshi.common;

/**
 * @Title: VinConstance
 * @Author fj
 * @Package com.apes.fn.vinApi.common
 * @Date 2023/6/5 14:03
 * @description: 调用精实接口常量类
 *
 * 接口编码作用说明:
 *  3001：VIN码查车型
 *  4001：通过配件号(品牌件号/oe号)获取配件基础信息
 *  4004：通过配件号(品牌件号/oe号)获取替换号码
 *  4006：获取OE对应的4S店价格
 *  5101：一级目录
 *  5102：二级目录
 *  5103：三级目录
 *  5104：四级目录
 *  5105：配件列表
 *  5106：配件号码搜索
 *  5107：配件EPC原厂名称搜索
 *  5108：配件标准名称搜索
 *  5109：所有配件号码
 *  5110：所有EPC配件名称
 *  5112：配件搜索提示
 */
public class VinConstance {

    /**
     * 账号用户名
     */
    public static final String USER = "jiqun001";

    /**
     * 请求前缀
     */
    public static final String BASE_URL = "http://api.17vin.com:8080";

    /**
     * 图片前缀
     */
    public static final String IMAGE_URL = "http://resource.17vin.com/img/%s/";

    /**
     * 生成token前缀
     */
    public static final String TOKEN_BASE = "f195b8f2664f3f737e5a5e1f47639c1f75408df89beb70213de9dffd36eacb1c";

    /**
     * 3001接口-token
     */
    public static final String VIN_CCX_TOKEN = "/?vin=%s";

    /**
     * 3001接口-token
     */
    public static final String VIN_CCX_PARAM_TOKEN = "/?vin=%s&gonggao_no=%s";

    /**
     * 3001接口-path
     */
    public static final String VIN_CCX_PATH = BASE_URL+"/?vin=%s&user=%s&token=%s";

    /**
     * 3001接口加非必选参数-path
     */
    public static final String VIN_CCX_PATH_PARAM = BASE_URL+"/?vin=%s&gonggao_no=%s&user=%s&token=%s";

    /**
     * 4001接口-token
     */
    public static final String VIN_HQPJJCXX_TOKEN = "/?action=search_epc&query_part_number=%s&query_match_type=%s";

    /**
     * 4001接口-path
     */
    public static final String VIN_HQPJJCXX_PATH = BASE_URL+"/?action=search_epc&query_part_number=%s&query_match_type=%s&user=%s&token=%s";

    /**
     * 4004接口-token
     */
    public static final String VIN_HQTHHM_TOKEN = "/?action=get_interchange_from_part_number_and_group_id_plus_zh&part_number=%s&group_id=%s";

    /**
     * 4004接口-path
     */
    public static final String VIN_HQTHHM_PATH = BASE_URL + "/?action=get_interchange_from_part_number_and_group_id_plus_zh&part_number=%s&group_id=%s&user=%s&token=%s";

    /**
     * 4006接口-token
     */
    public static final String VIN_FSDJG_TOKEN = "/?action=price&partnumber=%s";

    /**
     * 4006接口-path
     */
    public static final String VIN_FSDJG_PATH = BASE_URL + "/?action=price&partnumber=%s&user=%s&token=%s";

    /**
     * 5101接口-token
     */
    public static final String VIN_YJML_TOKEN = "/%s?vin=%s&action=cata1";

    /**
     * 5101接口-PATH
     */
    public static final String VIN_YJML_PATH = BASE_URL+"/%s?vin=%s&action=cata1&user=%s&token=%s";

    /**
     * 5102接口-token
     */
    public static final String VIN_EJML_TOKEN = "/%s?vin=%s&cata1_code=%s";

    /**
     * 5102接口-PATH
     */
    public static final String VIN_EJML_PATH = BASE_URL+"/%s?vin=%s&cata1_code=%s&user=%s&token=%s";

    /**
     * 5103接口-token
     */
    public static final String VIN_SJML_TOKEN = "/%s?vin=%s&action=cata3&cata2_code=%s";

    /**
     * 5103接口-PATH
     */
    public static final String VIN_SJML_PATH = BASE_URL+"/%s?vin=%s&action=cata3&cata2_code=%s&user=%s&token=%s";

    /**
     * 5104接口-token
     */
    public static final String VIN_FJML_TOKEN = "/%s?vin=%s&action=cata4&cata3_code=%s";

    /**
     * 5104接口-PATH
     */
    public static final String VIN_FJML_PATH = BASE_URL+"/%s?vin=%s&action=cata4&cata3_code=%s&user=%s&token=%s";

    /**
     * 5105接口-token
     */
    public static final String VIN_PJLB_TOKEN = "/%s?vin=%s&action=part&last_cata_code=%s&last_cata_code_level=%s";

    /**
     * 5105接口-PATH
     */
    public static final String VIN_PJLB_PATH = BASE_URL+"/%s?vin=%s&action=part&last_cata_code=%s&last_cata_code_level=%s&user=%s&token=%s";

    /**
     * 5106接口-token
     */
    public static final String VIN_PJHMSS_TOKEN = "/%s?action=search_part_number&vin=%s&query_match_type=%s&query_part_number=%s";

    /**
     * 5106接口-PATH
     */
    public static final String VIN_PJHMSS_PATH = BASE_URL+"/%s?action=search_part_number&vin=%s&query_match_type=%s&query_part_number=%s&user=%s&token=%s";

    /**
     * 5107接口-token
     */
    public static final String VIN_PJEPCYCMCSS_TOKEN = "/%s?action=search_epc_part_name&vin=%s&query_match_type=%s&query_part_name=%s";

    /**
     * 5107接口-PATH
     */
    public static final String VIN_PJEPCYCMCSS_PATH = BASE_URL+"/%s?action=search_epc_part_name&vin=%s&query_match_type=%s&query_part_name=%s&user=%s&token=%s";

    /**
     * 5108接口-token
     */
    public static final String VIN_PJBZMCSS_TOKEN = "/%s?action=search_std_part_name&vin=%s&query_match_type=%s&query_part_name=%s";

    /**
     * 5108接口-PATH
     */
    public static final String VIN_PJBZMCSS_PATH = BASE_URL+"/%s?action=search_std_part_name&vin=%s&query_match_type=%s&query_part_name=%s&user=%s&token=%s";

    /**
     * 5109接口-token
     */
    public static final String VIN_SYPJHM_TOKEN = "/%s?action=all_part_number&vin=%s";

    /**
     * 5109接口-path
     */
    public static final String VIN_SYPJHM_PATH = BASE_URL+"/%s?action=all_part_number&vin=%s&user=%s&token=%s";

    /**
     * 5110接口-token
     */
    public static final String VIN_SYEPCPY_TOKEN = "/%s?action=all_epc_part_name&vin=%s";

    /**
     * 5110接口-path
     */
    public static final String VIN_SYEPCPY_PATH = BASE_URL+"/%s?action=all_epc_part_name&vin=%s&user=%s&token=%s";

    /**
     * 5112接口-token
     */
    public static final String VIN_PJSSTS_TOKEN = "/%s?action=search_suggest&vin=%s&suggest_key=%s";

    /**
     * 5112接口-path
     */
    public static final String VIN_PJSSTS_PATH = BASE_URL+"/%s?action=search_suggest&vin=%s&suggest_key=%s&user=%s&token=%s";

}
